import { fromJS, } from 'immutable'
import * as actionTypes from '../constants/action_types'

const initialState = fromJS({
  message: 'hello yejiayu',
})

export default function (state = initialState, action = {}) {
  switch (action.type) {
  case actionTypes.SAY_HELLO:
    return state.set('message', action.message)
  default:
    return state
  }
}
